//
//  GJPerson.m
//  ObjcGoNew
//
//  Created by 邢伟新 on 2021/4/27.
//

#import "GJPerson.h"

@implementation GJPerson


- (void)encodeWithCoder:(NSCoder *)aCoder
{
    
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.age forKey:@"age"];
    [aCoder encodeObject:self.hejght forKey:@"hejght"];
    
}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {

        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.age = [aDecoder decodeObjectForKey:@"age"];
        self.hejght = [aDecoder decodeObjectForKey:@"hejght"];
        
        
        
  
    }
    
    return self;
}

@end
